import request from "@/utils/request";
// 工单搜索
export const getSearch =  (params) =>  request({
  url:'/task-service/task/search',
  method:'get',
  params
})
// 获取下拉菜单的状态
export const selectStatus = () => request({
  url:'/task-service/task/allTaskStatus'
})
// https://likede2-admin.itheima.net/likede/api/task-service/task/allTaskStatus

// 补货详情
export const getMent = (id)=> request({
  url:`/task-service/taskDetails/${id}`
})
// 获取运营人员
export const getPerope = (innerCode) => request({
  url:`/user-service/user/repairerList/${innerCode}`
})
// 获取补货警戒线的值
export const getBhX = ()=> request({
  url:'/task-service/task/supplyAlertValue',
  // params:{
  //   alertValue
  // }
})
// 修改补货警戒线的值
export const editBhX = (alertValue)=> request({
  url:'/task-service/task/autoSupplyConfig',
  method:'post',
  data:{
    alertValue
  }
})